package com.qianfeng.ssm.mapper;

import com.qianfeng.ssm.pojo.Person;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Zhao_Win
 * @version V1.0
 * @Project AllDay
 * @Date 2022/3/10 15:45
 */
public interface PersonMapper {


    @Select("select * from Person where id = #{id}")
    Person findById(Long id);

    @Select("select * from Person")
    List<Person> findAll();


    int addPerson(Person boy);

    @Delete("delete from Person where id = #{id}")
    int deletePerson(Long id);

    int updatePersonById(Long long,Person person);



}
